﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using Common;


namespace LCRReader
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            portconfigAccess portconfigAccess = new portconfigAccess();
            var portconfig =portconfigAccess.GetportConfigByName();
            Comm.Inst.Open(portconfig.COM, portconfig.Baudrate, portconfig.DataBits, portconfig.Stopbits, portconfig.Stopbits);
            IO_C0640.instance.WriteBit(1, true);
            Application.Run(new Main());
        }
    }
}
